﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head id="Head1" runat="server">
    <title>Facebook Connect & Facebook Developer Toolkit 3.0</title>
</head>
<body>

    <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"
        type="text/javascript"></script>

    <form id="form1" runat="server"> 
    <div>
        <fb:login-button onlogin="window.location.reload()">
        </fb:login-button>
        <br />
        <br />
        Name captured from Facebook Connect:
        <asp:Label ID="lblName" runat="server" Text="Not authenticated."></asp:Label>
    </div>
    </form>

    <script type="text/javascript">
        FB.init("YOUR_API_KEY", "xd_receiver.htm");
    </script>

</body>
</html>
